home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / gcc / gcc261a.zoo / g++-include / Drawtool.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-21  |  834 b   |  49 lines

  1. #ifndef _DL_Drawtool
  2. #pragma interface
  3. #define _DL_Drawtool 1
  4. #include <stddef.h>
  5. #include <Classlib.h>
  6.  
  7. class DrawTool
  8.     {
  9.     protected:
  10.     int Color_;
  11.     int Style_;
  12.     public:
  13.         DrawTool(int style = 1, int color = 15);
  14.         void colour(int);
  15.         void style(int);
  16.         };
  17.  
  18. enum brush_type{WHITE_BRUSH, LGREY_BRUSH, GREY_BRUSH,
  19.         DGREY_BRUSH, BLACK_BRUSH, NULL_BRUSH};
  20.  
  21. class Pen : public DrawTool
  22.     {
  23.     int User_;
  24.     int StartStyle_;
  25.     int EndStyle_;
  26.     int Width_;
  27.     public:
  28.         Pen(int c = 15, int s = 1, int w = 1, int pat = -1);
  29.         Pen(Pen&);
  30.         void Select(GraphPort&);
  31.         int width();
  32.         void setWidth(int);
  33.     };
  34.  
  35. class Brush : public DrawTool
  36.     {
  37.     int Interior;
  38.     int Planes;
  39.     int User_[16];
  40.     public:
  41.         Brush(int c = 0, int s = 0, int i = 0, int *u = NULL);
  42.         Brush(Brush&);
  43.         void Select(GraphPort&);
  44.     };
  45.  
  46. extern Brush& StockBrush(brush_type);
  47.  
  48. #endif
  49.